//
//  YJBDefine.h
//  WuLiuTong2
//
//  Created by 腾云小白龍 on 16/5/16.
//  Copyright © 2016年 李昭宏. All rights reserved.
//

#ifndef YJBDefine_h
#define YJBDefine_h
//#import "NSString+YW.h"
//#import "UIView+BlocksKit.h"
#import "HTColorDefines.h"
#import "HTFontDefines.h"
#import "HTImageDefines.h"
#import "HTLayout.h"
//#import "UIView+Utils.h"
#import "NSDictionary+Extensions.h"
//#import "NSValueTransformer+MTLPredefinedTransformerAdditions.h"
#import "SVProgressHUD.h"
//#import "UMMobClick/MobClick.h"
#import "HTAPI.h"
#import "MJRefresh.h"
#import "NSString+Extension.h"
#import "UIView+Extension.h"
#import "Mantle.h"




#define YJBLog(a)        NSLog(@"---------%@--------",a);
#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
#define kMainScreenSize [UIScreen mainScreen].bounds.size
#define KUserDefault    [NSUserDefaults standardUserDefaults]
#define YJBUserToken                @"userToken"
#define YJBPingCangCountLessenNotification  @"YJBPingCangCountLessenNotification"

//**缓存
#define YJBTradeMarketCache         @"YJBTradeMarketCache"
#define YJBMyCountCache             @"YJBMyCountCache"
#define YJBHistoryDealCache         @"YJBHistoryDealCache"
#define YJBBalanceBillCache         @"YJBBalanceBillCache"
#define YJBUserProtocolCache        @"YJBUserProtocolCache"    


//上传地理位置云函数
#define YJBUpdateUserGpsLocation    @"updateUserGpsLocation"
//相同关系中附近的用户位置接口
#define YJBNearbyInSameRelation     @"nearbyInSameRelation"

//服务器根接口
//#define KMainURL                    @"http://192.168.0.150:9601/services/app"//测试
//#define KMainURL                    @"http://152o91t620.iask.in:9601/services/app" //云服务器测试
//真实交易
#define YJBKMainRealURL             @"http://reexch.56yjb.com/services/app"
//模拟交易
#define KMainURL                    @"http://imexch.56yjb.com/services/app"







//***********************************************************************new, 2016.07.18
//用户服务协议
#define getUserProtocolURL          @"/identity/user/user-agreement.json"



//发送手机验证码post
#define postVerfyCodeURL            @"/identity/user/send-phone-verify.action"
//用户注册(POST)
#define postRegisterURL             @"/identity/user/signup.action"
//用户登陆(POST)
#define postLoginURL                @"/identity/user/login.action"

//************************************************************************************






//获取用户token
#define getUserTokenURL             @"/identity/user/get-link-token.json"
//交易模块合约列表
#define getTransportTradeListURL    @"/exchanges/real-time-market/market-list.json"
//我的账户
#define getMyCountListURL           @"/exchanges/account-capital/capital-summary.json"
//实时交易行情详细(GET)
#define getTransportDealDetailURL   @"/exchanges/real-time-market/market-detail.json"
//资金余额账单摘要(GET)
#define getAccountBalanceBillURL    @"/exchanges/account-balance/capital_balance_summary.json"
//交易账单摘要(GET)
#define getHistoryBillURl           @"/exchanges/account-balance/turnover_balance_summary.json"
// 账户委托单查询(GET)
#define getMyCommissionListURL      @"/exchanges/account-entrust/summary-list.json"
//实时合约交易准备(开仓/平仓界面的接口)(GET)
#define getOpenDealListURL          @"/exchanges/real-time-market/contract-exchange-ready.json"
//合约说明(GET)
#define getTradeExplainURL          @"/exchanges/real-time-market/market-description.json"
//账户资产兑换准备(GET)
#define getMyBalanceURL             @"/exchanges/account-capital/capital-convert-ready.json"


//实时合约交易(POST)下单买卖
#define postMyDealURL               @"/exchanges/real-time-market/contract-exchange.action"
//账户委托单撤销(POST)
#define postCancleMyCommission      @"/exchanges/account-entrust/revoke-entrust.action"
//设置止盈止损(POST)
#define postSetTransferPrice        @"/exchanges/account-entrust/update-safeguard.action"
//账户资产兑换(POST)
#define postCovertBalanceURL        @"/exchanges/account-capital/capital-convert.action"

#endif /* YJBDefine_h */
